﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.ApplicationServices;
using DryIoc;
using Org.BouncyCastle.Asn1.Ocsp;

namespace Kang.DbDoc.ViewModels
{
    public class ViewModelLocator
    {
        Container container = new Container();

        public ViewModelLocator()
        {
            // 注册服务
            container.Register<MainWindowViewModel>(Reuse.Singleton);
            container.Register<DatabaseManagerPageViewModel>(Reuse.Singleton);
        }

        public MainWindowViewModel MainWindow => container.Resolve<MainWindowViewModel>();
        public DatabaseManagerPageViewModel DatabaseManagerPage => container.Resolve<DatabaseManagerPageViewModel>();
    }
}
